Skip to content

Register missing fixers in default set, enforce CS in CI, fix README#82

Merged
TomasVotruba merged 2 commits into
mainfrom
improve-ci-and-register-fixers
Jun 8, 2026
Merged

Register missing fixers in default set, enforce CS in CI, fix README#82
TomasVotruba merged 2 commits into
mainfrom
improve-ci-and-register-fixers

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

What & why

Three fixes found while reviewing the repo:

1. Register two documented-but-unshipped fixers

StandaloneLineInMultilineArrayFixer and StandaloneLineConstructorParamFixer are documented in the README and fully tested, but were missing from config/symplify.php — so they never ran for users of SetList::SYMPLIFY. Now registered.

2. CI was not enforcing coding standard

The Coding Standard job ran composer fix-cs (ecs --fix), which auto-corrects and exits 0 — style regressions could never fail the build. Switched to composer check-cs. For a coding-standard package this is the most important check to actually enforce.

3. CI hardening

  • Added a tests job with a PHP matrix (8.2, 8.3, 8.4) — previously tests only ran on 8.2, despite >=8.2 support and version-conditional code paths.
  • Bumped actions/checkout@v3 → v4 and ramsey/composer-install@v2 → v3.

4. README accuracy

  • Header count 12 Rules → 14 Rules (all 14 fixers are documented).
  • Fixed a broken class link: RemoveRedundantDescriptionFixer (does not exist) → RemoveMethodNameDuplicateDescriptionFixer.

Verification

Local run all green: PHPStan (lvl 8), ECS, Rector, PHPUnit (150 tests).

@TomasVotruba TomasVotruba merged commit 91aa307 into main Jun 8, 2026
6 checks passed
@TomasVotruba

Copy link
Copy Markdown
Member Author

LGTM 👍

@TomasVotruba TomasVotruba deleted the improve-ci-and-register-fixers branch June 8, 2026 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant